package com.oxygen.design.visitor;

import com.oxygen.design.visitor.interfaces.ComputerPart;
import com.oxygen.design.visitor.interfaces.impl.Computer;
import com.oxygen.design.visitor.interfaces.impl.ComputerPartDisplayVisitor;

/**
 * @author wangjie
 * @title: VisitorPatternDemo
 * @description: TODO
 * @date 2022/3/12 10:57 PM
 **/
public class VisitorPatternDemo {

    public static void main(String[] args) {

        ComputerPart computer = new Computer();
        computer.accept(new ComputerPartDisplayVisitor());
    }

}
